<?php
/**
 * 列表显示字段配置
 * User: Administrator
 * Date: 2018/10/10
 * Time: 17:06
 */

return [
    'role_getList' => [
        [
            'title'    => '角色名称',
            'align'    => 'center',
            'key'      => 'name',
            'width'    => 150,
        ], [
            'title'    => '显示标题',
            'align'    => 'center',
            'key'      => 'display_name',
            'width'    => 150,
        ], [
            'title'    => '描述',
            'align'    => 'center',
            'key'      => 'description',
            'width'    => 150,
            'tooltip'  => true,
        ], [
            'title'    => '用户数量',
            'align'    => 'center',
            'key'      => 'users_count',
            'width'    => 150,
        ], [
            'title'    => '权限数量',
            'align'    => 'center',
            'key'      => 'perms_count',
            'width'    => 150,
        ], [
            'title'    => '创建时间',
            'align'    => 'center',
            'key'      => 'created_at',
            'sortable' => 'custom',
        ]
    ],

    'admin_getList' => [
        [
            'key'      => 'check',
            'type'     => 'selection',
            'align'    => 'center',
            'width'    => 60,
        ], [
            'title'    => '员工编码',
            'align'    => 'center',
            'key'      => 'staff_code',
            'width'    => 150,
        ], [
            'title'    => '真实姓名',
            'align'    => 'center',
            'key'      => 'real_name',
            'width'    => 150,
        ], [
            'title'    => '性别',
            'align'    => 'center',
            'key'      => 'sex_lable',
            'width'    => 150,
        ], [
            'title'    => '用户名',
            'align'    => 'center',
            'key'      => 'username',
            'width'    => 150,
        ], [
            'title'    => '手机号',
            'align'    => 'center',
            'key'      => 'mobile',
            'width'    => 150,
        ], [
            'title'    => '邮箱',
            'align'    => 'center',
            'key'      => 'email',
            'width'    => 150,
        ], [
            'title'    => '级别',
            'align'    => 'center',
            'key'      => 'grade',
            'width'    => 150,
        ], [
            'title'    => '部门',
            'align'    => 'center',
            'key'      => 'depart',
            'width'    => 150,
        ], [
            'title'    => '职位',
            'align'    => 'center',
            'key'      => 'position',
            'width'    => 150,
        ], [
            'title'    => '薪资',
            'align'    => 'center',
            'key'      => 'salary',
            'width'    => 150,
        ], [
            'title'    => '工作状态',
            'align'    => 'center',
            'key'      => 'working_status_lable',
            'width'    => 150,
        ], [
            'title'    => '在职类型',
            'align'    => 'center',
            'key'      => 'working_type_lable',
            'width'    => 150,
        ], [
            'title'    => '登录次数',
            'align'    => 'center',
            'key'      => 'login_count',
            'width'    => 150,
        ], [
            'title'    => '上次登录',
            'align'    => 'center',
            'key'      => 'updated_at',
            'width'    => 160,
        ], [
            'title'    => '创建人',
            'align'    => 'center',
            'key'      => 'creator_name',
            'width'    => 150,
            'render'   => 'link',
        ], [
            'title'    => '创建时间',
            'align'    => 'center',
            'key'      => 'created_at',
            'width'    => 160,
        ]
    ],

    'attach_getList' => [
        [
            'title'    => '原名称',
            'align'    => 'center',
            'key'      => 'origin_name',
            'width'    => 150,
            'render'   => 'link'
        ], [
            'title'    => '大小',
            'align'    => 'center',
            'key'      => 'size',
            'width'    => 150,
        ], [
            'title'    => '类型',
            'align'    => 'center',
            'key'      => 'type',
            'width'    => 150,
        ], [
            'title'    => '扩展名',
            'align'    => 'center',
            'key'      => 'file_ext',
            'width'    => 150,
        ], [
            'title'    => '附加信息',
            'align'    => 'center',
            'key'      => 'ext_info',
            'width'    => 150,
        ], [
            'title'    => '图片',
            'align'    => 'center',
            'key'      => 'attach_url',
            'width'    => 150,
            'render'   => 'img'
        ], [
            'title'    => '名称',
            'align'    => 'center',
            'key'      => 'name',
            'width'    => 150,
        ], [
            'title'    => '创建人',
            'align'    => 'center',
            'key'      => 'create_name',
            'width'    => 150,
        ], [
            'title'    => '创建时间',
            'align'    => 'center',
            'key'      => 'created_at',
            'sortable' => 'custom',
            'width'    => 160,
        ]
    ],

    'permission_getList' => [
        [
            'title' => '名称',
            'key'   => 'name',
            'width' => 300,
        ], [
            'title' => '显示',
            'align' => 'center',
            'key'   => 'display_name',
            'width' => 150,
        ], [
            'title' => '权限',
            'align' => 'center',
            'key'   => 'access',
            'width' => 150,
        ], [
            'title' => '描述',
            'align' => 'center',
            'key'   => 'description',
            'width' => 150,
        ], [
            'title'    => '操作',
            'align'    => 'center',
            'key'      => 'display_name',
            'width'    => 150,
            'type'     => 'template',
            'template' => 'operationBtn',
        ],
    ],

    'download_getList' => [
        [
            'title' => '附件名称',
            'key'   => 'attach_name',
            'width' => 300,
        ], [
            'title' => '模块',
            'align' => 'center',
            'key'   => 'module',
            'width' => 150,
        ], [
            'title' => '下载用户',
            'align' => 'center',
            'key'   => 'creator_name',
            'width' => 150,
        ], [
            'title' => '下载时间',
            'align' => 'center',
            'key'   => 'created_at',
        ],
    ],

    'loopImg_getList' => [
        [
            'title' => '图片',
            'key'   => 'img_attach.attach_url',
            'width' => 150,
            'render' => 'img',
        ], [
            'title' => '简介',
            'key'   => 'abstract',
            'width' => 300,
        ], [
            'title' => '位置',
            'align' => 'center',
            'key'   => 'position',
            'width' => 150,
        ], [
            'title' => '跳转地址',
            'align' => 'center',
            'key'   => 'redirect',
            'width' => 150,
        ], [
            'title' => '启用时间',
            'align' => 'center',
            'key'   => 'time',
            'width' => 300,
            'render' => 'join',
            'columns' => ['start_time', 'end_time'],
            'join' => ' 至 ',
        ], [
            'title' => '创建时间',
            'align' => 'center',
            'key'   => 'created_at',
        ],
    ],

    'tag_getList' => [
        [
            'title' => '标签',
            'align' => 'center',
            'key'   => 'name',
            'width' => 150,
        ], [
            'title' => '分类',
            'align' => 'center',
            'key'   => 'type',
            'width' => 150,
        ], [
            'title' => '备注',
            'align' => 'center',
            'key'   => 'remark',
            'width' => 150,
            'tooltip'  => true,
        ], [
            'title' => '创建时间',
            'align' => 'center',
            'key'   => 'created_at',
        ],
    ],

    'coupon_getList' => [
        [
            'title' => '名称',
            'align' => 'center',
            'key'   => 'name',
            'width' => 150,
        ], [
            'title' => '分类',
            'align' => 'center',
            'key'   => 'type_lable',
            'width' => 150,
        ], [
            'title' => '可用范围',
            'align' => 'center',
            'key'   => 'usable_range_lable',
            'width' => 150,
        ], [
            'title' => '满减',
            'align' => 'center',
            'key'   => 'full_reduction',
            'width' => 150,
        ], [
            'title' => '优惠金额',
            'align' => 'center',
            'key'   => 'amount',
            'width' => 150,
        ], [
            'title' => '使用平台',
            'align' => 'center',
            'key'   => 'platform_lable',
            'width' => 150,
        ], [
            'title' => '有效期',
            'align' => 'center',
            'key'   => 'time',
            'width' => 300,
            'render' => 'join',
            'columns' => ['start_time', 'end_time'],
            'join' => ' 至 ',
        ], [
            'title' => '数量',
            'align' => 'center',
            'key'   => 'num',
            'width' => 150,
        ], [
            'title' => '简介',
            'align' => 'center',
            'key'   => 'abstract',
            'width' => 150,
            'tooltip'  => true,
        ], [
            'title' => '排序',
            'align' => 'center',
            'key'   => 'sort',
            'width' => 150,
        ], [
            'title' => '备注',
            'align' => 'center',
            'key'   => 'remark',
            'width' => 150,
            'tooltip'  => true,
        ], [
            'title' => '创建时间',
            'align' => 'center',
            'key'   => 'created_at',
            'width' => 160,
        ],
    ],

    'brand_getList' => [
        [
            'title' => 'LOGO',
            'key'   => 'logo_attach.attach_url',
            'width' => 150,
            'render' => 'img',
        ], [
            'title' => '名称',
            'align' => 'center',
            'key'   => 'name',
            'width' => 150,
        ], [
            'title' => '分类',
            'align' => 'center',
            'key'   => 'type_lable',
            'width' => 150,
        ], [
            'title' => '排序',
            'align' => 'center',
            'key'   => 'sort',
            'width' => 150,
        ], [
            'title' => '备注',
            'align' => 'center',
            'key'   => 'remark',
            'width' => 300,
            'tooltip'  => true,
        ], [
            'title' => '创建时间',
            'align' => 'center',
            'key'   => 'created_at',
        ],
    ],

    'attribute_getList' => [
        [
            'title' => '名称',
            'align' => 'center',
            'key'   => 'name',
            'width' => 150,
        ], [
            'title' => '英文名',
            'align' => 'center',
            'key'   => 'en_name',
            'width' => 150,
        ], [
            'title' => '分类',
            'align' => 'center',
            'key'   => 'category.name',
            'width' => 150,
        ], [
            'title' => '输入方式',
            'align' => 'center',
            'key'   => 'is_input',
            'width' => 150,
        ], [
            'title' => '属性值',
            'align' => 'center',
            'key'   => 'value',
            'width' => 300,
        ], [
            'title' => '状态',
            'align' => 'center',
            'key'   => 'is_online',
            'width' => 150,
        ], [
            'title' => '备注',
            'align' => 'center',
            'key'   => 'remark',
            'width' => 300,
            'tooltip'  => true,
        ], [
            'title' => '创建时间',
            'align' => 'center',
            'key'   => 'created_at',
            'width' => 160,
        ],
    ],

    'category_getList' => [
        [
            'title' => '名称',
            'align' => 'center',
            'key'   => 'name',
            'width' => 150,
        ], [
            'title' => '英文名',
            'align' => 'center',
            'key'   => 'en_name',
            'width' => 150,
        ], [
            'title' => '排序',
            'align' => 'center',
            'key'   => 'sort',
            'width' => 150,
        ], [
            'title' => '上架状态',
            'align' => 'center',
            'key'   => 'is_online',
            'width' => 150,
        ], [
            'title' => '备注',
            'align' => 'center',
            'key'   => 'remark',
            'width' => 300,
            'tooltip'  => true,
        ], [
            'title' => '创建时间',
            'align' => 'center',
            'key'   => 'created_at',
        ], [
            'title'    => '操作',
            'align'    => 'center',
            'key'      => 'display_name',
            'width'    => 150,
            'type'     => 'template',
            'template' => 'operationBtn',
        ],
    ],

    'goods_getList' => [
        [
            'title' => '名称',
            'align' => 'center',
            'key'   => 'name',
            'width' => 150,
        ], [
            'title' => '英文名',
            'align' => 'center',
            'key'   => 'en_name',
            'width' => 150,
        ], [
            'title' => '分类',
            'align' => 'center',
            'key'   => 'name',
            'width' => 150,
        ], [
            'title' => '输入方式',
            'align' => 'center',
            'key'   => 'is_input',
            'width' => 150,
        ], [
            'title' => '属性值',
            'align' => 'center',
            'key'   => 'value',
            'width' => 150,
            'tooltip'  => true,
        ], [
            'title' => '状态',
            'align' => 'center',
            'key'   => 'is_online',
            'width' => 150,
        ], [
            'title' => '备注',
            'align' => 'center',
            'key'   => 'remark',
            'width' => 300,
            'tooltip'  => true,
        ], [
            'title' => '创建时间',
            'align' => 'center',
            'key'   => 'created_at',
        ],
    ],


];
